home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / LOCCounter.readme < prev    next >
Text File  |  2004-09-23  |  1KB  |  30 lines

  1. Short:    Simple SLOC counter for C/C++
  2. Author:   ssolie@telus.net (Steven Solie)
  3. Uploader: ssolie@telus.net (Steven Solie)
  4. Version:  3.0
  5. Type:     dev/misc
  6. Requires: AmigaOS 4.0
  7.  
  8.  
  9. This is a simple source lines of code (SLOC) counter for C and C++.
  10. It counts only lines of source code and skips all comments and white
  11. space. The counter is also capable of counting rcsdiff/diff files
  12. and will output the total added and deleted LOC.
  13.  
  14. The source code is included in the hopes it can serve as an example for
  15. AmigaOS 4.0 programmers. I first wrote this counter in C a long time
  16. ago and it has been adapted over the years to become a C++ program which
  17. is why the design is rather rough. I hope you find it a useful example
  18. of modern C++ coding on AmigaOS nonetheless.
  19.  
  20. Note this program relies on a couple of C++ Boost libraries to compile.
  21. See http://www.boost.org/ for more details.
  22.  
  23.  
  24. loc FILE/M/A,TOTAL/S,DIFF=DIFFERENCE/S,QUICK/S
  25.  
  26. FILE  - one or more source files or patterns
  27. TOTAL - display only the final totals
  28. DIFF  - count a difference file output from rcsdiff/diff
  29. QUICK - output only the total to stdout useful for scripting
  30.